package com.loong.loong.hik.property.result.face;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

/**
 * @author jinyiang
 * @date 2023/3/10 16:24
 */
@Data
@ApiModel("人脸分组1vN比对请求参数实体类")
public class HikFaceGroup1vNCompareResultVo {

	@ApiModelProperty(value = "返回状态码，\"0\"表示成功")
	private String code;

	@ApiModelProperty(value = "返回信息")
	private String msg;

	@ApiModelProperty(value = "返回数据")
	private Data data;

	@lombok.Data
	@ApiModel("返回数据类")
	public static class Data {
		@ApiModelProperty(value = "总数")
		private int total;

		@ApiModelProperty(value = "当前页码")
		private int pageNo;

		@ApiModelProperty(value = "每页大小")
		private int pageSize;

		@ApiModelProperty(value = "结果列表")
		private List<Result> list;

		@lombok.Data
		@ApiModel("结果类")
		public static class Result {
			@ApiModelProperty(value = "相似度")
			private int similarity;

			@ApiModelProperty(value = "人员唯一标识")
			private String indexCode;

			@ApiModelProperty(value = "人脸信息")
			private FaceInfo faceInfo;

			@ApiModelProperty(value = "人脸图片信息")
			private FacePic facePic;

			@lombok.Data
			@ApiModel("人脸信息类")
			public static class FaceInfo {
				@ApiModelProperty(value = "姓名")
				private String name;

				@ApiModelProperty(value = "性别，\"1\"表示男，\"2\"表示女")
				private String sex;

				@ApiModelProperty(value = "证件类型")
				private String certificateType;

				@ApiModelProperty(value = "证件号码")
				private String certificateNum;
			}

			@lombok.Data
			@ApiModel("人脸图片信息类")
			public static class FacePic {

				@ApiModelProperty(value = "人脸图片url")
				private String faceUrl;
			}
		}
	}
}
